package com.ming.easyDevelop.mappers;

import com.ming.easyDevelop.mappers.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;
/**
 * @Description  Mapper接口
 * @Author ming
 * @Date 2024/07/10
 */
@Mapper
public interface UsersMapper<T,P> extends BaseMapper {
	/**
	 * 根据UserID查询
	 */
	T selectByUserID(@Param("userID") Integer userID);
	/**
	 * 根据UserID更新
	 */
	Long updateByUserID(@Param("bean") T t, @Param("userID") Integer userID);
	/**
	 * 根据UserID删除
	 */
	Long deleteByUserID(@Param("userID") Integer userID);
	/**
	 * 根据Username查询
	 */
	T selectByUsername(@Param("username") String username);
	/**
	 * 根据Username更新
	 */
	Long updateByUsername(@Param("bean") T t, @Param("username") String username);
	/**
	 * 根据Username删除
	 */
	Long deleteByUsername(@Param("username") String username);
	/**
	 * 根据Email查询
	 */
	T selectByEmail(@Param("email") String email);
	/**
	 * 根据Email更新
	 */
	Long updateByEmail(@Param("bean") T t, @Param("email") String email);
	/**
	 * 根据Email删除
	 */
	Long deleteByEmail(@Param("email") String email);
}